﻿<html>
<head>
    <title>Sample Page</title>
</head>
<body>
    <input id="first" type="text" />
    +
    <input id="second" type="text" />
    = <span id="result"></span>
    <br />
    <br />
    <button id="calculate">Calculate</button>
    <script type="text/javascript" src="jquery-1.6.4.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {            
            $("#calculate").click(function () {
                $("#result").html(Number($("#first").val()) + Number($("#second").val()));
            });
        });
    </script>
</body>
</html>
